// 遍历对象的可枚举属性
var obj = {
  name: '张智琦',
  age: 18
}

for (var key in obj) {
  var value = obj[key]
  console.log(key, value)
}
